package com.resign.carl.decorate.io;

import java.io.*;

/**
 * Created by carl.zhao on 2016/6/14.
 */
public class InputTest {
    public static void main(String[] args) throws IOException {
        int c = -1;
        InputStream in = null;
        try {
            File file = new File("D:\\workspaces\\head-first\\src\\main\\java\\com\\resign\\carl\\decorate\\io\\test.txt");
            in = new LowerCaseInputStream(new BufferedInputStream(new FileInputStream(file)));
            while((c = in.read()) > 0){
                System.out.print((char) c);
            }
        } catch (IOException e){
            e.printStackTrace();
        } finally {
            if(null != in){
                in.close();
            }
        }
    }
}
